package com.travelSpring.exception;

import lombok.Data;

/**
 * 功能：运行时自定义异常
 * 作者：卷心菜
 * 日期：2025/2/25 21:02
 */
@Data
public class UserException extends RuntimeException {
    private String msg;
    private String code;
    public UserException(String msg) {
        this.code="500";
        this.msg = msg;
    }
    public UserException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public UserException(){}
}
